package vooga.behaviors;

import vooga.entities.Entity;


public class SetHeadingBehavior extends AbstractBehavior
{
    private double myHeading;


    public SetHeadingBehavior (double degrees)
    {
        myHeading = degrees;
    }


    public void step (Entity target)
    {
        target.setHeading(myHeading);
        target.removeBehavior(this);
    }
}
